package com.yy.sso.authority.center.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yy.sso.authority.center.mapper.RoleMapper;
import com.yy.sso.authority.center.model.Role;
import com.yy.sso.authority.center.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> listByUserId(Long userId) {
        return this.roleMapper.listByUserId(userId);
    }
}
